package com.cake.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.cake.entity.base.BaseEntity;

public class XxBanner extends BaseEntity {
    /**
     * 横幅主键
     * 表字段 : xx_banner.id
     */
    private Long id;

    /**
     * 横幅分类名称
     * 表字段 : xx_banner.category_name
     */
    private String categoryName;

    /**
     * 横幅描述
     * 表字段 : xx_banner.desctription
     */
    private String desctription;

    /**
     * 横幅显示的位置信息
     * 表字段 : xx_banner.site
     */
    private String site;

    /**
     * 横幅排序序号
     * 表字段 : xx_banner.order
     */
    private String order;

    /**
     * 横幅排序位
     * 表字段 : xx_banner.orders
     */
    private Integer orders;

    /**
     * 
     * 表字段 : xx_banner.create_date
     */
    private Date createDate;

    /**
     * 
     * 表字段 : xx_banner.modify_date
     */
    private Date modifyDate;

    /**
     * banner的图片对象
     */
    private List<XxBannerImage> images = new ArrayList<XxBannerImage>();

    /**
     * 链接地址
     */
    private String linkUrl;
    /**
     * 链接地址前缀
     */
    private String linkUrlPre;
    
	public String getLinkUrlPre() {
		return linkUrlPre;
	}

	public void setLinkUrlPre(String linkUrlPre) {
		this.linkUrlPre = linkUrlPre;
	}

	public String getLinkUrl() {
		return linkUrl;
	}

	public void setLinkUrl(String linkUrl) {
		this.linkUrl = linkUrl;
	}

	public List<XxBannerImage> getImages() {
		return images;
	}

	public void setImages(List<XxBannerImage> images) {
		this.images = images;
	}

	/**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table xx_banner
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    /**
     * banner图片
     */
    private List<XxBannerImage> bannerImages = new ArrayList<XxBannerImage>();
    
    public List<XxBannerImage> getBannerImages() {
		return bannerImages;
	}

	public void setBannerImages(List<XxBannerImage> bannerImages) {
		this.bannerImages = bannerImages;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName == null ? null : categoryName.trim();
    }

    public String getDesctription() {
        return desctription;
    }

    public void setDesctription(String desctription) {
        this.desctription = desctription == null ? null : desctription.trim();
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site == null ? null : site.trim();
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order == null ? null : order.trim();
    }

    public Integer getOrders() {
        return orders;
    }

    public void setOrders(Integer orders) {
        this.orders = orders;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", categoryName=").append(categoryName);
        sb.append(", desctription=").append(desctription);
        sb.append(", site=").append(site);
        sb.append(", order=").append(order);
        sb.append(", orders=").append(orders);
        sb.append(", createDate=").append(createDate);
        sb.append(", modifyDate=").append(modifyDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}